package com.xkdx.guangguang.pushserviceforSelf;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;
import com.xkdx.guangguang.module.statics.IConstants;

public class PushServiceForSelfAction extends AbsAction {
	private String userID, loginToken;

	public PushServiceForSelfAction(String userid, String loginToken) {
		this.url = IConstants.INFO_URL;
		this.userID = userid;
		this.loginToken = loginToken;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("LoginToken", loginToken);
		map.put("UserID", userID);
		String json = constructJson(map);
		Parameter parameter = new Parameter("InfoCenterChapterAction",
				"GetUserInfoNew", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);
	}

}
